home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
thandlr.exe
/
THANDLER.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-14
|
2KB
|
66 lines
/*-----------------------------------------------------------------------*/
/* filename - thandler.hpp */
/* */
/* function(s) */
/* declarations for the THandler class */
/* */
/* author - Michael Newton */
/* */
/*-----------------------------------------------------------------------*/
/*-----------------------------------------------------------------------*/
/* */
/* THANDLER.HPP */
/* */
/* THandler Version 1.01 */
/* Copyright (C) 1992, 1993 Michael Newton */
/* All Rights Reserved. */
/* */
/*-----------------------------------------------------------------------*/
#if !defined __THANDLER_HPP
#define __THANDLER_HPP
#include <tv.h>
typedef void interrupt (far *fptr)(...);
typedef unsigned char byte;
typedef unsigned int word;
typedef unsigned int far *fpword;
typedef void *pvoid;
typedef void far *fpvoid;
#define MAXERRWIDTH 52
const ignoreOK = 0x2000;
const retryOK = 0x1000;
const failOK = 0x0800;
const driveMask = 0x00FF;
const bit07 = 0x0080;
class THandler
{
public:
THandler(Boolean isSound = True);
~THandler();
void suspend();
void resume();
void setSound(Boolean isSound);
Boolean getSound();
private:
static void interrupt (far *oldInt24)(...);
static void far newInt24(word ax, word di, fpword bpsi);
};
#endif // End of __THANDLER_HPP